<?php

function clean($c)
{
	$c = str_ireplace("\\'", "\&#39;", $c);
	$c = str_ireplace("'", "\&#39;", $c); //&#39;
	$c = str_ireplace('"', '&quot;', $c);
	$c = str_ireplace('<', '&lt;', $c);
	$c = str_ireplace('>', '&gt;', $c);
	$c = str_ireplace(',', '&#44', $c); // &#44;
	$c = str_ireplace('.', '&#46;', $c);
	$c = str_ireplace(':', '&#58', $c); // &#58;
	$c = str_ireplace('(', '&#40', $c); // &#40;
	$c = str_ireplace(')', '&#41', $c); // &#41;
	//$c = str_ireplace(';', '&#59', $c);

	return $c;	
}
?>